package com.b.repository;

import com.b.domain.UserAuth;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.core.SearchPage;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface UserAuthRepository  extends ElasticsearchRepository<UserAuth, Integer> {

    SearchPage<UserAuth> findUserAuthByNameLikeOrPhoneLike(Pageable pageable, String name ,String  phone );

    UserAuth findByUserId(Integer userId);

}
